//
//  NSMutableStringAdditions.h
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface NSMutableString (Tint)

/*
 * URL
 */
- (void)addQueryDictionary:(NSDictionary *)dictionary;
- (void)appendParameter:(id)paramter forKey:(NSString *)key;

/*
 * Replacing
 */
- (void)replaceString:(NSString *)searchString withString:(NSString *)newString; // Case sensitive
- (void)replaceString:(NSString *)searchString withString:(NSString *)newString ignoringCase:(BOOL)ignore;

/*
 * Triming
 */
- (void)removeWhitespace;
- (void)removeWhitespaceAndNewline;

/*
 * Truncating
 */
- (void)truncateToWidth:(CGFloat)width withFont:(UIFont *)font;

@end
